<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>电子病历</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="电子病历,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="js/caseHistory.js"></script>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
$(document).ready(function(){
   var menstrualHistory=$("#menstrualHistory").val();
   if(menstrualHistory!=""){
   $("#yuejing").show();
   }
});
</script>
<body ontouchstart>
<div class="container js_container">
</div>
<form action="" name="form" id="form">
<div class="page">
    <div class="bd">
        <div class="weui_grids">
       <div class="weui_cells_title" >
       <div class="weui_cell weui_cell_select weui_select_before">
                <div class="weui_cell_bd weui_cell_primary page_title"  style="font-size: 18px;">
                    <input class="weui_input" type="text" style="text-align: center;" placeholder="请填写病历名称" value="${bean.historyName}" id="historyName" name="historyName">
                </div>
            </div>
       </div>
      	       <div class="weui_cell">
                <div class="weui_cell_hd"><label for="username" class="weui_label">姓名:</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" name="username" id="username" placeholder="请输入姓名" value="${bean.username }">
                </div>
            </div>
            <div class="weui_cell weui_cell_select weui_select_after">
                <div class="weui_cell_hd">
                 	  性别：
            </div>
                <div class="weui_cell_bd weui_cell_primary">
                    <select class="weui_select" name="sex" id="sex" onchange="selectMenstrual();" >
                   
                        <option value="0"  <c:if test="${bean.sex==0 }">selected="selected"</c:if> >男</option>
                        <option value="1" <c:if test="${bean.sex==1 }">selected="selected"</c:if>>女</option>
                    </select>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label for="birthday" class="weui_label">生日:</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="date" value="${bean.birthDay}" placeholder="请输入出生日期" id="birthday" name="birthday">
                </div>
            </div>
               <div class="weui_cell">
                <div class="weui_cell_hd"><label for="profession" class="weui_label">职业:</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" name="profession" placeholder="请输入职业" value="${bean.profession }">
                </div>
            </div>
            <div class="weui_cell weui_cell_select weui_select_after">
                <div class="weui_cell_hd">
                 	  婚姻：
                </div>
                <div class="weui_cell_bd weui_cell_primary">
                    <select class="weui_select" name="maritalStatus" id="maritalStatus" >
                        <option value="0" <c:if test="${bean.sex==0 }">selected="selected"</c:if>>未婚</option>
                        <option value="1" <c:if test="${bean.sex==0 }">selected="selected"</c:if>>已婚</option>
                    </select>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label for="phone" class="weui_label" style="width: 5em" >联系方式:</label></div>
                <div class="weui_cell_bd weui_cell_primary" >
                    <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入联系方式" max="11" name="phone" id="phone" value="${bean.phone }">
                </div>
            </div>
             <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   现病史：
                    <textarea class="weui_textarea" placeholder="请输入现病史" rows="5" id="presentIllness" name="presentIllness">${bean.presentIllness }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   既往史：
                    <textarea class="weui_textarea" placeholder="请输入既往史" rows="5" id="previousHistory" name="previousHistory">${bean.previousHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   个人史：
                    <textarea class="weui_textarea" placeholder="请输入个人史" rows="5" id="personalHistory" name="personalHistory">${bean.personalHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
            <!--             女性用户使用 -->
             <div class="weui_cell" id="yuejing" style="display: none">
                <div class="weui_cell_bd weui_cell_primary">
            		月经史：
                    <textarea class="weui_textarea" placeholder="请输入月经史" rows="5" id="menstrualHistory" name="menstrualHistory">${bean.menstrualHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
               <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   婚育史：
                    <textarea class="weui_textarea" placeholder="请输入婚育史" rows="5" id="obstericalHistory" name="obstericalHistory">${bean.obstericalHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
             <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   过敏史：
                    <textarea class="weui_textarea" placeholder="请输入过敏史" rows="5" id="allergicHistory" name="allergicHistory">${bean.allergicHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   家族史：
                    <textarea class="weui_textarea" placeholder="请输入家族史" rows="5" id="familyHistory" name="familyHistory">${bean.familyHistory }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
         
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		   体格检查结果：
                    <textarea class="weui_textarea" placeholder="请输入体格检查结果" rows="5" id="physicalExamination" name="physicalExamination">${bean.physicalExamination }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
            		辅助检结果：
                    <textarea class="weui_textarea" placeholder="请输入辅助检结果" rows="5" id="accessoryExamination" name="accessoryExamination">${bean.accessoryExamination }</textarea>
                    <div class="weui_textarea_counter"><span>0</span>/500</div>
                </div>
            </div>
             <div class="weui_cell">
                <div class="weui_cell_hd" ><label for="password" class="weui_label" style="width:5em">访问密码:</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" name="secondaryPassword" id="secondaryPassword" placeholder="请输入访问密码" value="${bean.secondaryPassword }">
                </div>
            </div>
             <div class="weui_cell">
            </div>
            <div class="weui_btn_area">
            <a class="weui_btn weui_btn_primary" id="save" onclick="toSaveCase('${bean.id}');">保存病历</a>
        </div>
            
        </div>
    </div>
    
</div>
	</form>
</body>
</html>
